-- GENERATED SPELL FOR [Drakkari Witch Doctor] --


function spell0_27555(pUnit, Event) --@Superior Healing Ward,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(15869,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_27555', 1, 1)
end

function spell1_27555(pUnit, Event) --@Superior Healing Ward,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(32194,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_27555', 1, 1)
end

function spell2_27555(pUnit, Event) --@Voodoo Doll,n/a--
pUnit:FullCastSpellOnTarget(52695,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27555', 2500, 1)
end

function Sorts_27555(pUnit, Event)
local choix_sorts_27555 = math.random(0, 2)
if choix_sorts_27555 == 0 then
pUnit:RegisterEvent('spell0_27555', 1, 1)
end
if choix_sorts_27555 == 1 then
pUnit:RegisterEvent('spell1_27555', 1, 1)
end
if choix_sorts_27555 == 2 then
pUnit:RegisterEvent('spell2_27555', 1, 1)
end
end

function mob27555_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27555', math.random(1500, 3000), 1)
end

function mob27555_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27555_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27555_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27555, 1, 'mob27555_Action')
RegisterUnitEvent(27555, 2, 'mob27555_Leave')
RegisterUnitEvent(27555, 3, 'mob27555_Kill')
RegisterUnitEvent(27555, 4, 'mob27555_Die')
